<?php 
/* SVN FILE: $Id$ */
/* Registration Test cases generated on: 2009-09-09 23:20:56 : 1252552856*/
App::import('Model', 'Registration');

class RegistrationTestCase extends CakeTestCase {
	var $Registration = null;
	var $fixtures = array('app.registration', 'app.tournament', 'app.housee', 'app.individual', 'app.quizmaster', 'app.team');

	function startTest() {
		$this->Registration =& ClassRegistry::init('Registration');
	}

	function testRegistrationInstance() {
		$this->assertTrue(is_a($this->Registration, 'Registration'));
	}

	function testRegistrationFind() {
		$this->Registration->recursive = -1;
		$results = $this->Registration->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Registration' => array(
			'id'  => 1,
			'tournament_id'  => 1,
			'email'  => 'Lorem ipsum dolor sit amet',
			'church_name'  => 'Lorem ipsum dolor sit amet',
			'coach_name'  => 'Lorem ipsum dolor sit amet',
			'phone'  => 'Lorem ipsum dolor sit amet',
			'number_for_lunch'  => 1,
			'number_of_seats'  => 1,
			'housing_notes'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
		));
		$this->assertEqual($results, $expected);
	}
}
?>